<%--
  Created by IntelliJ IDEA.
  User: 迷路的麋鹿
  Date: 2018/4/26
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<form action="OnlineUserLogin.jsp" method="post">
    用户id:<input type="text" name="userId">
    <input type="submit" value="登录">
</form>
<%
    String userId=request.getParameter("userId");
    if(!(userId==null||"".equals(userId))){
        session.setAttribute("userId",userId);
        response.sendRedirect("OnlineUserList.jsp");
    }
%>
</body>
</html>
